﻿<Window x:Class="SlideShowDFG2.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SlideShowDFG2" Height="550" Width="800"
    Loaded="Window_Loaded" Closing="Window_Closing">
    
    <Grid>
        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <Grid Width="217">
                    <StackPanel>
                        <Label FontSize="16pt" FontWeight="Bold">Albums</Label>
                        <ListView SelectionChanged="lvAlbums_SelectionChanged" Height="340" Name="lvAlbums">
                            <ListView.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Path=Title}" />
                                </DataTemplate>
                            </ListView.ItemTemplate>
                        </ListView>
                        <StackPanel HorizontalAlignment="Center">
                            <Button Name="btnAlbumNew" Click="btnAlbumNew_Click">Create New Album</Button>
                            <Separator Background="White" Width="10" />
                            <Button IsEnabled="False" Click="btnAlbumEdit_Click" Name="btnAlbumEdit">Edit Selected Item</Button>
                            <Separator Background="White" Width="10" />
                            <Button IsEnabled="False" Name="btnAlbumDelete" Click="btnAlbumDelete_Click">Delete Selected Album</Button>
                        </StackPanel>
                    </StackPanel>
                </Grid>
                <Separator Background="White" Width="20" />
                <Grid Width="230">
                    <StackPanel>
                        <Label FontSize="16pt" FontWeight="Bold">Slides</Label>
                        <ListView Height="340" Name="lvSlides" SelectionChanged="lvSlides_SelectionChanged">
                            <ListView.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Path=Title}" />
                                        <Separator />
                                        <TextBlock Text="{Binding Path=Source}" /> 
                                    </StackPanel>
                                </DataTemplate>
                            </ListView.ItemTemplate>
                        </ListView>
                        <StackPanel HorizontalAlignment="Center">
                            <Button IsEnabled="False" Name="btnSlideNew" Click="btnSlideNew_Click">New Slide</Button>
                            <Separator Background="White" Width="10" />
                            <Button IsEnabled="False" Name="btnSlideDelete" Click="btnSlideDelete_Click">Delete Slide</Button>
                            <Separator Background="White" Width="10" />
                            <Button IsEnabled="False" Name="btnSlideNewBulk">Bulk Create New Slides</Button>
                        </StackPanel>
                        
                    </StackPanel>
                </Grid>
                <Separator Background="White" Width="20" />
                <Grid Width="290">
                    <StackPanel Name="spSlideDetails">
                        <Label FontSize="16pt" FontWeight="Bold">Slide Details</Label>
                        <Separator Background="White" Height="15" />
                        <Image Height="200" Name="imgPreview" Stretch="Uniform" />
                        <Label Name="lblImgMsg" Foreground="Red" HorizontalContentAlignment="Center" /> 
                        <Separator Background="White" Height="10" />
                        <Grid Height="100" HorizontalAlignment="Center" Width="290">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="75" />
                                <ColumnDefinition Width="145*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Label Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center">Title</Label>
                            <Label Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">Description</Label>
                            <Label Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">Link</Label>
                            <TextBox Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch"  VerticalAlignment="Center" Name="tb_imgTitle" Text="{Binding Path=Title}" />
                            <TextBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch"  VerticalAlignment="Center" Name="tb_imgDesc" Text="{Binding Path=Description}" />
                            <TextBox Grid.Column="1" Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Center" Name="tb_imgLink" Text="{Binding Path=Link}" /> 
                        </Grid>
                        <Separator Background="White" Height="10" />
                        <Button Click="btnVideoPreview_Click" Name="btnVideoPreview" IsEnabled="False" Width="200">Preview Video File</Button>
                    </StackPanel>
                </Grid>
            </StackPanel>
            <Separator Background="White" Height="20" />
            <StatusBar>
                <Label Name="lblCurrentFile" ToolTip="Data File Location" />
                <Separator />
                <Button Click="btnSettings_Click" Name="btnSettings">Application Settings</Button>
            </StatusBar>
        </StackPanel>
    </Grid>
</Window>
